/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package itu.dk.bosk.ex3;

/**
 *
 * @author Michael Valentin
 */
public enum SignalColor {
    GREEN(true), YELLOW(false), RED(false);
    
    private final boolean drivingAllowed;

    SignalColor(boolean drivingAllowed) {
        this.drivingAllowed = drivingAllowed;
    }

    public boolean isDrivingAllowed() {
        return drivingAllowed;
    }
}
